package cn.cdqf.coupon.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * httpClient/okHttp
 */
@RestController
@Slf4j
public class RestTemplateController {
    int i = 0;
    @GetMapping("restTemplate")
    public String restTemplate(){
        log.info("来了。。。");
            try {
                Thread.sleep(2000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

        return "manager返回的数据";
    }

}
